package com.tt.dp.decorator.condiment;

import com.tt.dp.decorator.beverage.Beverage;

public class Whip extends CondimentDecorator {

    private Beverage beverage;

    public Whip(Beverage beverage){
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return this.beverage.getDescription() + " , Whip";
    }

    @Override
    public double cost() {
        return 0.6 + this.beverage.cost();
    }
}
